package com.dragon.logical.service.contract;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.Equipment;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 设备 服务类
 * </p>
 *
 * @author sy
 * @since 2023-11-29
 */
public interface IEquipmentService extends IService<Equipment> {

    /**
     * 设备列表
     * @param type
     * @return
     */
    List<Equipment> equipmentList(Integer type);

    /**
     * 添加
     * @param equipment
     */
    void equipmentAdd(Equipment equipment);

    /**
     * 修改
     * @param equipment
     */
    void equipmentUpdate(Equipment equipment);

    /**
     * 录入数据
     * @param equipment
     */
    void enterData(Equipment equipment);

    void updateProduceType(Integer produceId);
}
